import axios from '../wyaxios'

//获取首页轮播图的数据
export const getHomeSwiper = () => axios.get("home/swiperdata");
//获取分类图标的数据
export const getCategory = () => axios.get('home/catitems');
//获取图片列表的数据
export const getImgList = () => axios.get('home/floordata');
//搜索中心请求的数据
export const getGoodList = (params) => axios.get('goods/qsearch',{
    params:params
})


//获取商品分类的数据
export const getProTypeList = () => axios.get('categories');
//根据商品id请求商品的详细信息
export const getItemDetail = (params) => axios.get('goods/detail',{
    params:params
});
//获取商品列表的数据
export const getProList = (params) => axios.get('/goods/search',{
    params:params
});
